﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CsharpTrainer.Model.Entities;
using CsharpTrainer.Domain.Clients;
using Zeus.Thunder.Core;

namespace SharpTrainer.KissData
{
    class GetEmployeeTest : ITestCase
    {
        public void Run()
        {
            Console.Write("Please Input the Employee ID:");
            int empId = Convert.ToInt32(Console.ReadLine());
            
            EmployeesClient emp_client = new EmployeesClient();
            Employee employee = emp_client.GetEmployee(empId);

            if (employee != null)
                Console.WriteLine(employee.ToString());
            else
                Console.Write("No this employee!");

            Console.Read();
        }
    }
}
